﻿using System.Windows.Controls;

using Game.Level;

namespace Game.Editor
{
    public class CampainTreeMilestoneItem : TreeViewItem
    {
        readonly CampainTreeLevelItem _LevelItem;
        readonly GameMilestone _GameMilestone;

        public CampainTreeMilestoneItem(CampainTreeLevelItem levelItem,
                                        GameMilestone milestone)
        {
            _LevelItem = levelItem;
            _GameMilestone = milestone;
            this.Header = "" + milestone.EventType;
        }

        public GameLevel GameLevel
        {
            get { return _LevelItem.GameLevel; }
        }

        public GameMilestone GameMilestone
        {
            get { return _GameMilestone; }
        }

    }
}
